package com.ioi.entity;

import java.io.Serializable;

/**
 * Book 图书实体类
 *
 * @author LILIBO
 * @since 2024/4/27
 */
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    // 图书实体属性
    private int id;
    private int pubId;
    private String name;
    private String author;
    private String image;
    private String pubDate;
    private int number;
    private float price;
    // 出版社名称
    private String pubName;

    public Book() {
    }

    public Book(int pubId, String name, String author, String pubDate, int number, float price) {
        this.pubId = pubId;
        this.name = name;
        this.author = author;
        this.pubDate = pubDate;
        this.number = number;
        this.price = price;
    }

    public Book(int id, int pubId, String name, String author, String pubDate, int number, float price) {
        this.id = id;
        this.pubId = pubId;
        this.name = name;
        this.author = author;
        this.pubDate = pubDate;
        this.number = number;
        this.price = price;
    }

    public Book(int id, int pubId, String name, String author, String image, String pubDate, int number, float price, String pubName) {
        this.id = id;
        this.pubId = pubId;
        this.name = name;
        this.author = author;
        this.image = image;
        this.pubDate = pubDate;
        this.number = number;
        this.price = price;
        this.pubName = pubName;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", pubId=" + pubId +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", image='" + image + '\'' +
                ", pubDate='" + pubDate + '\'' +
                ", number=" + number +
                ", price=" + price +
                ", pubName='" + pubName + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPubId() {
        return pubId;
    }

    public void setPubId(int pubId) {
        this.pubId = pubId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getPubDate() {
        return pubDate;
    }

    public void setPubDate(String pubDate) {
        this.pubDate = pubDate;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getPubName() {
        return pubName;
    }

    public void setPubName(String pubName) {
        this.pubName = pubName;
    }

}
